package com.example.demo;

import com.deepoove.poi.XWPFTemplate;
import com.deepoove.poi.policy.RenderPolicy;
import com.deepoove.poi.template.ElementTemplate;
import com.deepoove.poi.template.run.RunTemplate;
import org.apache.poi.xwpf.usermodel.XWPFRun;

/**
 * @author: jiawp
 * @date: 2024/1/16 8:03
 * @description:
 **/
public class Test implements RenderPolicy {


    @Override
    public void render(ElementTemplate eleTemplate, Object o, XWPFTemplate xwpfTemplate) {
        XWPFRun run = ((RunTemplate) eleTemplate).getRun();
        // String thing = String.valueOf(data);
        String thing = "Hello, world";
        run.setText(thing, 0);

    }







}
